package com.hospital.yang.fchua.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description：药订单类
 * @author：xyj
 * @date：2021/9/22 15:39
 * @versions：v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("doctor_medicine")
public class DoctorMedicine {

    @TableId(type = IdType.AUTO)
    private Integer id;//编号
    private Integer userid; //用户id
    private String username; //用户名字
    private Integer count;//药品数量【新增】
    private Integer medicineid; //药id
    private Integer sum;//数量
    private String time;//开药时间
    private Integer doctorid;//医生id
    private String type;//医嘱
    private Integer state;//状态

    private DoctorInformation doctorInformation;//医生详细信息duixiang
    private DrugRemedy drugRemedy;//药品详细信息duixiang

    public DoctorMedicine(Integer id, Integer state) {
        this.id = id;
        this.state = state;
    }

}
